<#include "pageFrame.ftl">
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>ACTIVITI</title>
</head>
<body>
<div class="add-form">
    <div class="container">
        <div class="row clearfix">
            <div class="col-md-12 column">
                <form role="form" action="addUser" method="post">
                    <div class="form-group">
                        <label>用户编号</label>
                        <input type="text" class="form-control" name="userId"/>
                    </div>
                    <div class="form-group">
                        <label>用户名称</label>
                        <input type="text" class="form-control" name="userName"/>
                    </div>
                    <div class="form-group">
                        <label>用户邮箱</label>
                        <input type="email" class="form-control" name="email"/>
                    </div>
                    <div class="form-group">
                        <label>用户角色</label>
                        <select class="form-control" name="groupId">
                        <#list groups as group>
                            <option value="${group.id!}">${group.name!}</option>
                        </#list>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>用户密码</label>
                        <input type="password" class="form-control" name="password"/>
                    </div>
                    <button type="submit" class="btn btn-default">提交用户</button>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>